<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
   <h5>直接往script标签里放值和<script src="a.js"></script>有啥区别吗</h5> 
   <p>答案：</p>
    <p>1.执行顺序可能不一样</p>
    <p>2.外部约会的js能够同时替换多个html页面，会有更好的扩展性和可维护性。内部书写的js只能够替换当前的html文件</p>

    
    
    
    
    
    
    
    

</body>
</html>